package com.crane.oss.sys.bean.request.dictdetail;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;


/**
 * @author zhenxing.pi
 * @email ccsu123456@qq.com
 * @date 2020年08月24日 11时06分53秒
 */
@ApiModel(description = "新增参数")

@Getter
@Setter
@ToString
public class AddDictDetailReq implements Serializable {

	private static final long serialVersionUID = 5794934210021635552L;

	@ApiModelProperty(value = "字典分组id", name = "dicGroupId")
    @NotNull(message = "字典分组不能为空")
    private Long dicGroupId;

    @ApiModelProperty(value = "父字典主键", name = "pId")
    private Long pId;

    @ApiModelProperty(value = "字典名称", name = "dictName")
    @Size(min = 1, max = 30, message = "字典名称长度不在范围内")
    @NotNull(message = "字典名称不能为空")
    private String dictName;

    @ApiModelProperty(value = "字典值", name = "dictValue")
    @Size(min = 1, max = 200, message = "字典值长度不在范围内")
    @NotNull(message = "字典值不能为空")
    private String dictValue;

    @ApiModelProperty(value = "排序值", name = "orderValue")
    private Integer orderValue;

    @ApiModelProperty(value = "备注", name = "remark")
    @Size(max = 500, message = "字典描述长度超长")
    private String remark;


}
